package com.example.demo.dao;

import com.example.demo.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.core.annotation.Order;

import java.util.List;
@Mapper
public interface OrderDao {

    /**
     * 通过ID查询单条数据
     */
    public OrderEntity queryOrderById(Integer oid);

    /**
     * 通过实体作为筛选条件查询
     */
    public List<OrderEntity> queryOrderAll();

    /**
     * 新增数据
     */
    public int insertOrder(OrderEntity order);

    /**
     * 修改数据
     */
    public int updateOrder(OrderEntity order);

    /**
     * 通过主键删除数据
     */
    public void deleteOrderById(Integer oid);

    public List<OrderEntity> selectBySidAndStime (OrderEntity orderEntity);

    public OrderEntity selectByUidOrder(OrderEntity orderEntity);

    public List<OrderEntity> selectUidOrder(int uid);

    public List<OrderEntity> adminAllOrder();

}